import request from "@/utils/request";

export function listSysConfig(data) {
    return request({
        url: '/system/sys_config/list',
        method: 'get',
        params: data
    })
}

export function addSysConfig(data) {
    return request({
        url: '/system/sys_config/insert',
        method: 'post',
        data: data
    })
}

export function deleteSysConfig(dictId) {
    return request({
        url: '/system/sys_config/delete/' + dictId,
        method: 'delete'
    })
}

export function getSysConfig(dictId) {
    return request({
        url: '/system/sys_config/' + dictId,
        method: 'get'
    })
}

export function updateSysConfig(data) {
    return request({
        url: '/system/sys_config/update',
        method: 'put',
        data: data
    })
}
